package com.xnyzc.lhy.common.penum.statistics;

public enum ECapacityType {

    activeDriver(0, "日活司机量"),
    listenDriver(1, "听单中司机量"),
    enquiry(2, "询价乘客数"),
    driveOut(3, "今日出车司机"),
    orderFulfillment(4, "今日完单司机"),
    noDrivingOut(5, "未出车司机量"),
    pickUpACar(6, "接驾中司机量"),
    service(7, "服务中司机量");

    private Integer type;
    private String value;

    ECapacityType(Integer type, String value) {
        this.type = type;
        this.value = value;
    }

    public static ECapacityType findById(Integer type) {
        ECapacityType ePaymentType;
        switch (type) {
            case 0:
                ePaymentType = ECapacityType.activeDriver;
                break;
            case 1:
                ePaymentType = ECapacityType.listenDriver;
                break;
            case 2:
                ePaymentType = ECapacityType.enquiry;
                break;
            default:
                throw new IllegalArgumentException("非法type");
        }
        return ePaymentType;
    }

    public String getValue() {
        return this.value;
    }

    public Integer getType() {
        return this.type;
    }
}
